package com.flong.spring.config;

import com.flong.spring.bean.Student;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @Author:liangjl
 * @Date: 2020/6/11-20:50
 * @Eamil:jilongliang@sina.com
 * @Description:
 * PropertySource 读取外部properties文件的key-value值
 */
@Configuration
@PropertySource(value = {"classpath:/application.properties"})
public class ConfigOfPropertyValues {

    @Bean
    public Student getStu() {
        return Student.builder().build();
    }
}
